var footer_back=document.getElementById("returnTop");

footer_back.onclick=function(e){
    //e=e||window.event;
    if(e && e.preventDefault){
        e.preventDefault();
    }else{
        event.returnValue=false;
    }
    gundong();
}
function gundong(){
    var gundongtimerId=setInterval(function(){
        var scrolltop=0;
        if(document.body.scrollTop) {
            scrolltop=document.body.scrollTop;
            if(scrolltop<=30){
                document.body.scrollTop=0;
                clearInterval(gundongtimerId);
            }else{
                document.body.scrollTop-=30;
            }
        }else{
            scrolltop=document.documentElement.scrollTop;
            if(scrolltop<=30){
                document.documentElement.scrollTop=0;
                clearInterval(gundongtimerId);
            }else{
                document.documentElement.scrollTop-=30;
            }
        }
    },10);
}


//����
var sousuo=document.getElementById("sousuo");
sousuo.onfocus=function(){
    this.setAttribute("mark","mark");
    this.style.border="1px solid #936E88";
}
sousuo.onblur=function(){
    this.removeAttribute("mark");
    this.style.border="1px solid transparent";
}
sousuo.onmouseenter=function(){
    if(!this.hasAttribute("mark")) {
        this.style.border = "1px solid #936E88";
    }
}
sousuo.onmouseleave=function(){
    if(!this.hasAttribute("mark")) {
        this.style.border = "1px solid transparent";
    }
}


//Ŀ�ĵ�
var mudiul=document.getElementById("mudiul");
var mudiul2=document.getElementById("mudiul2");
var lis2=mudiul2.children;
var lis =mudiul.children;
for(var i= 0,length=lis.length;i<length;i++){
    lis[i].index=i;
    lis[i].onmouseover=function(){
        for(var j= 0,length=lis.length;j<length;j++){
            lis[j].removeAttribute("class");
        }
        for(var j= 0;j<lis2.length;j++){
            lis2[j].innerHTML="<a href='#'>不丹"+this.index+"</a>";
        }
        //for(var j= 0;j<19;j++){
        //    var li=document.createElement("li");
        //    li.innerHTML="����"+this.index;
        //    mudiul2.appendChild(li);
        //}
        this.setAttribute("class","header_bmml_selected");
    }
}


